翻訳と辞書
Words near each other
・ Peechi Dam
・ Peechi-Vazhani Wildlife Sanctuary
・ Peechoho
・ Peeckelhaeringh
・ Peedee Formation
・ Peederga
・ Peedi Peedi
・ Peeds, Virginia
・ Peedu
・ Peege
・ PEEK
・ Peek
・ Peek & Cloppenburg
・ Peek & Poke (White Town album)
・ Peek (crater)
Peek (data type operation)
・ Peek (mobile Internet device)
・ PEEK and POKE
・ Peek baronets
・ Peek Freans
・ Peek'n Peak
・ Peek'n Peak Classic
・ Peek's Creek
・ Peek's law
・ Peek-a-Boo (boxing style)
・ Peek-a-Boo (song)
・ Peek-A-Boo Poker
・ Peek-A-Boo Records
・ Peek-A-Boo Veach
・ Peek-A-Poo


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Peek (data type operation) : ウィキペディア英語版
Peek (data type operation)
In computer science, peek is an operation on certain abstract data types, specifically sequential collections such as stacks and queues, which returns the value of the top of the collection without removing the value from the data. It thus returns the same value as operations such as "pop" or "dequeue", but does not modify the data.
The name "peek" is similar to the basic "push" and "pop" operations on a stack, but the name for this operation varies depending on data type and language. Peek is generally considered an inessential operation, compared with the more basic operations of adding and removing data, and as such is not included in the basic definition of these data types. However, since it is a useful operation and generally easily implemented, it is frequently included in practice.
== Data types ==
Sequential types for which peek is often implemented include:
* Stack
* Queue
* Priority queue (such as a heap)
* Double-ended queue (deque)
* Double-ended priority queue (DEPQ)
Single-ended types, such as stack, generally only admit a single peek, at the end that is modified. Double-ended types, such as deques, admit two peeks, one at each end.
Names for peek vary. "Peek" or "top" are common for stacks, while for queues "front" is common. Operations on deques have varied names, often "front" and "back" or "first" and "last". The name "peak" is also occasionally found, in the sense of "top, summit", though this also occurs as a spelling error for the verb "peek".

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Peek (data type operation)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.